package com.zwd.cases.demo.gof23.singleton;

/**
 * @Description 单例模式的简单案例
 * @Author zhengwd
 * @Date 2023/4/11 10:17
 **/
public class SingletonDemo {

    public static void main(String[] args) {
        Singleton instance = Singleton.getInstance();
        String connection = instance.getConnection();
        System.out.println(connection);
    }
}
